package com.jy.adscm.operation.aftersales.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jy.adscm.operation.mscyb.bean.JqbzSettings;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyl
 * @since 2019-08-21
 */
public class ShRepair implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 部件名称
     */
    private String partName;
    @TableField(exist = false)
    private JqbzSettings partNameName;
    /**
     * 条码
     */
    private String partCode;
    /**
     * 型号
     */
    private String partType;
    /**
     * 批号
     */
    private String partBatchCode;
    /**
     * 浆站
     */
    private String customer;
    @TableField(exist = false)
    private ShCustomerInfo customerName;
    /**
     * 机器
     */
    private String machine;
    @TableField(exist = false)
    private ShMachine machineName;
    /**
     * （创建人）
     */
    private String creator;
    @TableField(exist = false)
    private String creatorName;
    /**
     * 维修执行人
     */
    private String performer;
    @TableField(exist = false)
    private String performerName;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 启动(0未启动，1启动）
     */
    private Integer isStart;
    /**
     * 启动时间
     */
    private Date startTime;
    /**
     * 处理类型（0维修，1为报废）
     */
    private Integer dealType;
    /**
     * 维修是否开始
     */
    private Integer isBegin;
    /**
     * 开始维修时间
     */
    private Date beginTime;
    //开始创建时间
    private Date beginAddTime;
    //维修是否结束
    private Integer isEnd;
    //维修结束时间
    private Date endTime;
    //维修结束创建时间
    private Date endAddTime;
    //维修结果()
    private Integer result;
    //任务状态
    private Integer state;

    public JqbzSettings getPartNameName() {
        return partNameName;
    }

    public void setPartNameName(JqbzSettings partNameName) {
        this.partNameName = partNameName;
    }

    public ShCustomerInfo getCustomerName() {
        return customerName;
    }

    public void setCustomerName(ShCustomerInfo customerName) {
        this.customerName = customerName;
    }

    public ShMachine getMachineName() {
        return machineName;
    }

    public void setMachineName(ShMachine machineName) {
        this.machineName = machineName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getPerformerName() {
        return performerName;
    }

    public void setPerformerName(String performerName) {
        this.performerName = performerName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public String getPartCode() {
        return partCode;
    }

    public void setPartCode(String partCode) {
        this.partCode = partCode;
    }

    public String getPartType() {
        return partType;
    }

    public void setPartType(String partType) {
        this.partType = partType;
    }

    public String getPartBatchCode() {
        return partBatchCode;
    }

    public void setPartBatchCode(String partBatchCode) {
        this.partBatchCode = partBatchCode;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    public String getMachine() {
        return machine;
    }

    public void setMachine(String machine) {
        this.machine = machine;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getPerformer() {
        return performer;
    }

    public void setPerformer(String performer) {
        this.performer = performer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getCreateTime() {
        return createTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getIsStart() {
        return isStart;
    }

    public void setIsStart(Integer isStart) {
        this.isStart = isStart;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getStartTime() {
        return startTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getDealType() {
        return dealType;
    }

    public void setDealType(Integer dealType) {
        this.dealType = dealType;
    }

    public Integer getIsBegin() {
        return isBegin;
    }

    public void setIsBegin(Integer isBegin) {
        this.isBegin = isBegin;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getBeginTime() {
        return beginTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getBeginAddTime() {
        return beginAddTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setBeginAddTime(Date beginAddTime) {
        this.beginAddTime = beginAddTime;
    }

    public Integer getIsEnd() {
        return isEnd;
    }

    public void setIsEnd(Integer isEnd) {
        this.isEnd = isEnd;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndTime() {
        return endTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getEndAddTime() {
        return endAddTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setEndAddTime(Date endAddTime) {
        this.endAddTime = endAddTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "ShRepair{" +
        "id=" + id +
        ", partName=" + partName +
        ", partCode=" + partCode +
        ", partType=" + partType +
        ", partBatchCode=" + partBatchCode +
        ", customer=" + customer +
        ", machine=" + machine +
        ", creator=" + creator +
        ", performer=" + performer +
        ", createTime=" + createTime +
        ", isStart=" + isStart +
        ", startTime=" + startTime +
        ", dealType=" + dealType +
        ", isBegin=" + isBegin +
        ", beginTime=" + beginTime +
        ", beginAddTime=" + beginAddTime +
        ", isEnd=" + isEnd +
        ", endTime=" + endTime +
        ", endAddTime=" + endAddTime +
        ", result=" + result +
        ", state=" + state +
        "}";
    }
}
